package com.shop.shopserver.service;

import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.shop.shoppojo.dto.AiChatDTO;
import com.shop.shoppojo.entity.Cart;
import com.shop.shoppojo.entity.MedicalRecord;
import com.shop.shoppojo.vo.AiChatVO;
import com.shop.shoppojo.vo.DailyRecommendVO;

public interface AiChatService{
    /**
     * 获取每日推荐
     * @return
     */
    DailyRecommendVO aiDailyRecommend() throws JsonProcessingException, NoApiKeyException, InputRequiredException;

    /**
     * 保存用户健康信息
     * @return
     */
    void saveMedicalRecord(MedicalRecord medicalRecord);

    /**
     * 获取用户健康信息
     * @return
     */
    MedicalRecord getMedicalRecord();

    /**
     * 获取健康咨询
     * @return
     */
    AiChatVO aiHealthInquiry(AiChatDTO aiChatDTO) throws JsonProcessingException, NoApiKeyException, InputRequiredException;

    /**
     * 获取对话框聊天
     * @param aiChatDTO
     * @return
     */
    AiChatVO aiDialogBoxChat(AiChatDTO aiChatDTO) throws JsonProcessingException, NoApiKeyException, InputRequiredException;
}
